import request from "@/utils/request";
export interface formDataModel {
	phone: string,
	password: string,
	code?:string
}
// export interface responseModel<T> {
// 	code:number,
// 	data:T,
// 	message:string
// }
export default {
	//注册
	register(formData: formDataModel) {
		return request.post<any, null>(`/api/user/passport/register`, formData)
	},
	//验证码
	reqCode(phone: string) {
		return request.get<any,string>(`/api/user/passport/sendCode/${phone}`)
	},

}
